package cc.lj.internal.coupons.interfaces.dto.convert;

import cc.lj.internal.api.coupons.dto.TicketBatchApiDTO;
import cc.lj.internal.coupons.domain.ticket.model.vo.TicketBatchDO;
import cc.lj.internal.coupons.domain.ticket.model.vo.TicketMainDO;
import cc.lj.internal.coupons.interfaces.dto.TicketBatchDTO;
import cc.lj.internal.coupons.interfaces.dto.TicketMainDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Named;
import org.mapstruct.factory.Mappers;

import java.math.BigDecimal;

/**
 * 电子券主表表DO与DTO转换
 * @author liangxifeng
 * @date 2022-06-14
 */
@Mapper
public interface TicketMainDTOConvertDO {
    TicketMainDTOConvertDO INSTANCE = Mappers.getMapper(TicketMainDTOConvertDO.class);

    //dto to do
    TicketMainDO convert(TicketMainDTO ticketMainDTO);

    //do to dto
    TicketMainDTO convert(TicketMainDO ticketMainDO);

}
